package gui;

import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JButton;
import javax.swing.JPanel;

import main.EpistocracyApplet;

public class PlayPanel extends TransparentPanel
{

	public PlayPanel(final EpistocracyApplet applet)
	{
		setBounds(0, 370, 450, 50);
		setLayout(null);
		setOpaque(false);
		JButton btnSpielen = new JButton("Spielen");
		btnSpielen.setBounds(344, 10, 100, 30);
		btnSpielen.addMouseListener(new MouseAdapter()
		{
			@Override
			public void mouseClicked(MouseEvent e)
			{
				applet.requestGame();
			}
		});
		btnSpielen.setBackground(Color.DARK_GRAY);
		btnSpielen.setForeground(Color.WHITE);
		add(btnSpielen);
	}

}
